﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using BakalarskaPraca.Generation.Data;
using BakalarskaPraca.Generation.Tasks.Abstract;
using BakalarskaPraca.Interfaces;

namespace BakalarskaPraca.Forms.GenerationSettingsForms
{
    public partial class GenerationSettingsFormBase<T>: Form, IGenerationProcessSettings
        where T: GenerationProcess
    {
        public GenerationSettingsFormBase()
        {
            InitializeComponent();
        }

        private void PreceedBtnClick(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        public bool ShowSettings(GenerationProcess generationProcess)
        {
            if (generationProcess is T)
            {
                return this.ShowSettings(generationProcess as T);
            }
            return false;
        }

        public virtual bool ShowSettings(T generationProcess)
        {
            throw new NotImplementedException();
        }

        public virtual GenerationProcess GetNewGenerationProcess(List<HumidityPolygon> polygons, ModelData modelData)
        {
            throw new NotImplementedException();
        }

        private void GenerationSettingsFormBaseResize(object sender, EventArgs e)
        {
            //this.PreceedBtn = this.Height - this.Margin.Bottom;
        }
    }
}
